package com.example.demo.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * \* @author: 张雪阳
 * \* Date: 2022/2/28
 * \
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
//@TableName("menu")  设置表名
public class Menu {

    /**
     * 表中不存在数据时用
     *
     * @TableField(exist = false)
     * 查询时不反回值
     * @TableField(select = false)
     * 设计id值自增， 注意AUTO
     * @TableId(type = IdType.AUTO)
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String type;
    private Double price;

}